import {createStore} from "redux" //把创建仓库得方法引进来
import {combineReducers,applyMiddleware} from "redux" // applyMiddleware处理中间件得 ，combineReducers 是用来合并reducer得
import deomoReducer from "./demoReducer"
import thunk from "redux-thunk" // 处理异步得中间键，redux本身不支持异步，所以我们要用这个中间件
import logger from "redux-logger" // 在浏览器控制台打印redux日志得中间件
let reducer = combineReducers({  // combineReducer是用来合并reducer得
    // deomoReducer:deomoReducer
    deomoReducer
})
export default createStore(reducer,applyMiddleware(thunk,logger))